/**
 * CustomProgressDialog.java
 * com.longcai.view
 *
 * Function�� TODO 
 *
 *   ver     date      		author
 * ��������������������������������������������������������������������
 *   		 2016��1��11�� 		holy
 *
 * Copyright (c) 2016, TNT All Rights Reserved.
 */

package longcaisuyun.longcai.com.myview;

import android.app.Dialog;
import android.content.Context;
import android.view.Gravity;

import longcaisuyun.longcai.com.yiliubabalongcaisuyun.R;


/**
 * ClassName:CustomProgressDialog Function: TODO ADD FUNCTION Reason: TODO ADD
 * REASON
 *
 * @author holy
 * @version
 * @since Ver 1.1
 * @Date 2016��1��11�� ����10:36:08
 *
 * @see
 */
public class CustomProgressDialog extends Dialog {
	@SuppressWarnings("unused")
	private Context context = null;
	private static CustomProgressDialog customProgressDialog = null;

	public CustomProgressDialog(Context context) {
		super(context);
		this.context = context;
	}

	public CustomProgressDialog(Context context, int theme) {
		super(context, theme);
	}

	public static CustomProgressDialog createDialog(Context context) {
		customProgressDialog = new CustomProgressDialog(context,
				R.style.CustomProgressDialog);
		customProgressDialog.setContentView(R.layout.mydialog);
		customProgressDialog.getWindow().getAttributes().gravity = Gravity.CENTER;
		customProgressDialog.setCancelable(false);
		
		return customProgressDialog;
	}

	public void onWindowFocusChanged(boolean hasFocus) {

		if (customProgressDialog == null) {
			return;
		}
	}

}
